@use '@toms/element-ui/theme-chalk/src/mixins/mixins' as *;

@include b(message) {    
  border-radius: var(--el-border-radius-small);  
  background-color: var(--color-white);  
  overflow: hidden;  
  display: flex;
  align-items: center;  

  @include when(center) {
    justify-content: center;
  }

  @include when(closable) {
    .el-message__content {
      padding-right: 16px;
    }
  }

  p {
    margin: 0;
  }

  @include m(info) {
    background-color: var(--color-white);
    border: none;

    & .el-message__content {
      color: var(--color-gray-13);
    }
  }

  @include m(success) {
    background-color: var(--color-white);
    border: none;

    & .el-message__content {
      color: var(--color-gray-13);
    }
  }

  @include m(warning) {
    background-color: var(--color-white);
    border: none;

    .el-message__content {
      color: var(--color-gray-13);
    }
  }

  @include m(error) {
    background-color: var(--color-white);
    border: none;

    .el-message__content {
      color: var(--color-gray-13);
    }
  }

  @include e(icon) {
    margin-right: 8px;

    &.el-icon-success {
      color: var(--color-success);
    }

    &.el-icon-info {
      color: var(--color-primary);
    }

    &.el-icon-warning {
      color: var(--color-warning);
    }

    &.el-icon-error {
      color: var(--color-danger);
    }
  }

  @include e(content) {
    padding: 0;
    font-size: 14px;
    line-height: 22px;

    &:focus {
      outline-width: 0;
    }
  }

}